package com.senriot.quickup.service.dto

import com.senriot.cloud.common.AbstractEntityDTO
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal
import javax.validation.constraints.NotBlank

@ApiModel("分成信息")
data class BonusDTO(
        override var id: Long? = null,
        /**
         * 分成的设备
         */
        @ApiModelProperty("用户账号")
        @field:NotBlank(message = "设备Id不能为空")
        var deviceId: String? = null,

        @ApiModelProperty("设备名称")
        var deviceName: String? = null,
        /**
         * 用户
         */
        @ApiModelProperty("用户ID")
        @field:NotBlank(message = "用户必须填")
        var userId: Long? = null,

        @ApiModelProperty("用户账号")
        var login: String? = null,

        @ApiModelProperty("用户头像")
        var imageUrl: String? = null,

        @ApiModelProperty("用户名")
        var userName: String? = null,
        /**
         * 分成金额
         */
        @ApiModelProperty("分成金额")
        var amount: BigDecimal? = BigDecimal(0.0),

        /**
         * 备注
         */
        @ApiModelProperty("备注")
        var remark: String? = null
) : AbstractEntityDTO<Long>()
